                <!-- 左侧人物公用部分 -->
                <div class="right-rw">
                    <div class="rw-img">
                        {{if $member_info['headimgurl'] == ''}}
                            {{if $member_info['sex'] == 1}}
                                <img id="pic" class="userinfo" src="{{$static_path}}/static/images/login/head_portrait2.png" alt="">
                            {{else if $member_info['sex'] == 2}}
                                <img id="pic" class="userinfo" src="{{$static_path}}/static/images/login/head_portrait1.png" alt="">
                            {{/if}}
                        {{else}}
                            <img id="pic" class="userinfo" src="{{$member_info['headimgurl']}}" alt="">
                        {{/if}}
                        <img class="userinfo-icon" src="{{$static_path}}/static/images/user_setup/xj_img.png" alt="">
                        <input id="uploads" name="file" accept="image/*" type="file" style="display: none">
                    </div>
                    <h2>
                        {{if $member_info['nickname'] != ''}}
                            {{$member_info['nickname']}}
                        {{else}}
                            {{$member_info['loginname']}}
                        {{/if}}
                    </h2>
                    <!-- <p class="cj-p">初级学员</p>
                    <ul class="gz-list">
                        <li> <span>325</span> 关注</li>
                        <li> <span>35</span> 好友</li>
                        <li> <span>25</span> 动态</li>
                    </ul>
                    <p class="qd">签到</p> -->
                </div>

                <ul class="dh-list">
                    <li> <a id='user-homepage' href="page_user-homepage">我的主页</a></li>
                    <li> <a id='user-setup' href="page_user-setup"> 账户设置</a></li>
                    <!-- <li> <a href="list_user-shopping.html"> 积分商城 </a></li>
                    <li> <a href="page_user-study1.html">学习中心 </a></li> -->
                    <li> <a id='user-feedback' href="page_user-feedback"> 回访反馈 </a></li>
                    <li> <a href="javascript:;" id='logout'> 安全退出 </a></li>
                </ul>
<script type="text/javascript">
    /*高亮*/
    var href = window.location.href;
    var cate = href.split('page_')[1];
    // console.log(cate);
    $('#' + cate).addClass('dh-acitve');

    /*退出*/
    $('#logout').click(function(){
        $.ajax({
            type: 'POST',
            dataType: 'json',
            url: "/member/logout",
            success: function(data){
                if(data.code == 0){
                    window.location.href = '/'
                }else{
                    alert('退出失敗')
                }
            },
            error: function(){
          
            }
        })
    })
</script>